function main(defaultParams) {
    debugger
    let pageRenderElement = this.$$root().$parent.$parent.$parent;
    if (defaultParams.moduleActionType === 'form-save') {

        let resultFlag = defaultParams.callbackParams.result.t_34d0cbb1d44f4c0d8d499ae7a652c23c.radio_c2kieg;
        let id = Number(defaultParams.callbackParams.result.t_34d0cbb1d44f4c0d8d499ae7a652c23c.number_input_66vwh6);
        if (resultFlag == '2') {
            let params = [{
                name: "modifyId",
                valueContent: id
            }];
            updateLitigant(params).then(res => {
                // 调用API更新数据
                if (pageRenderElement) {
                    pageRenderElement.goHistory(-1);
                }
            });
        }else {
            if (pageRenderElement) {
                pageRenderElement.goHistory(-1);
            }
        }


    }
}

function updateLitigant(params) {

    return new Promise((resolve, reject) => {
        api.DATA_SOURCE_EXECUTE("c0a1f028-ebe1-491f-ba92-3882bc0938b2", "api", params, [], "")
            .then(res => {
                try {
                    resolve(res);
                } catch (parseError) {
                    console.error("解析API响应时出错:", parseError);
                    reject(parseError);
                }
            })
            .catch(apiError => {
                console.error("调用API时出错:", apiError);
                reject(apiError);
            });
    });


}
